package cn.xn.hrms.domain.service;

import cn.xn.hrms.infrastructure.dataobject.PersonalSelectDO;
import cn.xn.hrms.infrastructure.dataobject.PersonalDO;
import cn.xn.hrms.api.dto.req.PersonalReqDTO;
import com.github.pagehelper.PageInfo;

import java.util.Collection;
import java.util.List;

/**
 * @author ysz
 */
public interface PersonalService {

    PageInfo<PersonalDO> findAll(int pageNum, int pageSize, int departmentId, String personalName, int workStatus);
    List<PersonalDO> All();

    PersonalDO find(int id);

    void insert(PersonalReqDTO personalReqDTO);

    void deleteByIdIn(Collection<Integer> idList);

    void updateById(Integer id, PersonalReqDTO personalReqDTO);
}
